package com.binjiang.pengfuhao.spring容器;


import com.binjiang.pengfuhao.pojo.getJSON;
import com.binjiang.pengfuhao.pojo.文件对象;
import com.binjiang.pengfuhao.服务对象.接收切片;
import com.fasterxml.jackson.databind.util.JSONPObject;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import redis.clients.jedis.Jedis;

@Configuration
public class spring容器 {

    @Bean
    public 文件对象 fileObjec(){
        return new 文件对象();
    }
    @Bean
    public 接收切片 接收切片(){
        return new 接收切片();
    }
    @Bean//redis链接对象
    public Jedis jedis(){
        return    new Jedis("192.168.217.129",6379);
    }
    @Bean
    public getJSON getJSON(){

        return new getJSON();
}



}
